var t = getApp();

Page({
    data: {
        language: "",
        recordsList: []
    },
    onLoad: function(t) {
        this.getData();
    },
    onReady: function() {
        var t = wx.getStorageSync("langIndex");
        this.setData({
            language: t.en
        });
    },
    onShow: function() {},
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    onShareAppMessage: function() {},
    toRed: function(t) {
        var e = t.target.dataset.item || t.currentTarget.dataset.item;
        wx.navigateTo({
            url: "/packageE/newRedReward/newRedReward?id=" + e.id
        });
    },
    getData: function() {
        var e = this, a = t.getNetAddresss("plugin.team-fjyx.api.red-pack.get-list");
        t._getNetWork({
            url: a,
            success: function(t) {
                var a = t.data;
                1 === a.result ? e.setData({
                    recordsList: a.data.list.data
                }) : wx.showToast({
                    title: a.msg,
                    icon: "none"
                });
            },
            fail: function(t) {
                console.log(t);
            }
        });
    }
});